package c.m.d.b.service;

import c.m.d.b.beans.EntityType;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.validation.constraints.NotNull;
import java.util.List;

@Transactional(propagation = Propagation.REQUIRED)
public interface EntityTypeService
{
    //POST /{name}
    public @NotEmpty String createEntityType(@NotNull EntityType entityType);

    //GET /{name}
    public @NotNull EntityType getEntityType(@NotEmpty String entityTypeName);

    //GET /
    public @NotNull List<String> getEntityTypesNames();

}
